/**
 * 当有long时则强制转换为long，其余情况强转为int
 */
public class TestOperator {
    public static void main(String[] args) {
        int a = 3;
        long b = 2;
        //int c ;//java: 不兼容的类型: 从long转换到int可能会有损失
        long c;
        c = a+b;
        System.out.println(c);

        byte a2 = 2;
        byte b2 = 3;
        //byte c2;//不兼容的类型: 从int转换到byte可能会有损失
        int c2;
        c2 = a2 +b2;
        System.out.println(c2);

        double a3 = 31/3;
        System.out.println(a3);
    }
}
